package com.os.ch2.el;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @Author Matt
 * @Date 2022-01-10
 * @Desc: 需要被注入的bean
 * @Version V1.0
 */
@Service
public class DemoService {

    @Value("其他类的属性")  //此处为注入普通字符串
    private String another;

    public String getAnother(){
        return another;
    }

    public void setAnother(String another){
        this.another = another;
    }
}
